<!DOCTYPE html>
<html>
    <head>
        <style>
            body {
                zoom: 0.9;
            }
            #test {
                width: fit-content;
                border: 1px solid red;
                padding: 5px;
                overflow: auto;
            }
        </style>
    </head>
    <body>
        <div id="test">
            This box should not have a scrollbar.
        </div>
    </body>
</body>
